<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>用户登录</title>
		<link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="css/login.css" />
		<script src="js/ajax.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="layui-main">
			<div class="logo">
				<img src="images/logo.png">
			</div>
			<div class="loginBox">
				<div class="loginBox-top">
				</div>
				<!-- 登录开始 -->
				<form class="layui-form loginForm"  action="">
					<div class="layui-form-item">
						<div>
							<i class="layui-icon layui-icon-username"></i>
							<input type="text" lay-verify="required|title" name="username" autocomplete="off" placeholder="请输入用户名"
								class="layui-input">
						</div>
					</div> 
					<div class="layui-form-item">
						<div>
							<i class="layui-icon layui-icon-password"></i>
							<input type="password" name="password" lay-verify="required|pass" autocomplete="off" placeholder="请输入密码"
								class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<button lay-submit="" type="submit" lay-filter="login" class="layui-btn layui-btn-normal  layui-btn-fluid">登录</button>
					</div>
					<div class="layui-form-item  go-register">
						<a href="javascript:void(0)" class="go-register">去注册账号</a>
					</div>
				</form>
				<!-- 登录结束 -->
				<!-- 注册开始 -->
				<form class="layui-form registerBox" action="" style="display: none;">
					<div class="layui-form-item">
						<div>
							<i class="layui-icon layui-icon-username"></i>
							<input type="text" name="username" lay-verify="required|title|exist" autocomplete="off" placeholder="请输入用户名"
								class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<div>
							<i class="layui-icon layui-icon-password"></i>
							<input type="text" name="password" lay-verify="required|pass|judge" autocomplete="off" placeholder="请输入密码"
								class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<div>
							<i class="layui-icon layui-icon-password"></i>
							<input type="text" name="password" lay-verify="required|pass|judge" autocomplete="off" placeholder="再次确认密码"
								class="layui-input password2">
						</div>
					</div>
					<div class="layui-form-item">
						<button  lay-submit="" type="submit" lay-filter="register" class="layui-btn layui-btn-normal  layui-btn-fluid">注册</button>
					</div>
					<div class="layui-form-item  go-register">
						<a href="javascript:void(0)">去登录</a>
					</div>
				</form>
				<!-- 注册结束 -->
			</div>
		</div>
		<script src="lib/layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/login.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
